package com.joysuch.wwyt.api.sync;

import com.joysuch.wwyt.api.dataaccess.OrientationDataSyncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author ZhaoQiuWei
 * @Date 2022/6/7 10:56
 */
@Component
@Slf4j
public class LocationAlarmRegistration implements InitializingBean {

    @Autowired
    private OrientationDataSyncService orientationDataSyncService;

    @Override
    public void afterPropertiesSet() {
        orientationDataSyncService.batchApiV3Subscribe();
    }
}
